home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / musicali / ays-t127.lha / THX-Example Player-CIA.ASM < prev    next >
Assembly Source File  |  1992-09-02  |  2KB  |  65 lines

  1. ;-------------------T-----------T-----------------T---------T---------------
  2.  
  3. ;=============================================================================
  4. ;=============================================================================
  5. ;===================== t h x - s o u n d   s y s t e m =======================
  6. ;=============================================================================
  7. ;=================== r e p l a y e r - t e s t   c o d e =====================
  8. ;=============================================================================
  9. ;=============================================================================
  10. ;========================= v e r s i o n   1 . 2 7 ===========================
  11. ;=============================================================================
  12. ;=============================================================================
  13.  
  14.     IncDIR    "ASM:System/THX-Tracker/"
  15.     Include    "THX-Tracker Offsets.I"
  16.  
  17.  
  18.     Section    Dexter\Abyss_rulez,Code
  19.  
  20. Start    movem.l    d1-d7/a0-a6,-(sp)
  21.  
  22. .InitPlayer    sub.l    a0,a0    ;auto-allocate public (fast)
  23.     sub.l    a1,a1    ;auto-allocate chip
  24.     jsr    thxReplayer+thxInitPlayer
  25.  
  26. .InitModule    lea    thxModule,a0    ;module
  27.     jsr    thxReplayer+thxInitModule
  28.  
  29. .InitSubSong    moveq    #0,d0    ;Subsong #0 = Mainsong
  30.     moveq    #0,d1    ;Play immediately
  31.     jsr    thxReplayer+thxInitSubSong
  32.  
  33. .InitCIA    lea    thxCIAInterrupt,a0
  34.     moveq    #0,d0
  35.     jsr    thxReplayer+thxInitCIA
  36.     tst    d0
  37.     bne.b    .thxInitFailed
  38.  
  39. .thxLetHimPlay    btst    #6,$bfe001
  40.     bne.b    .thxLetHimPlay
  41.  
  42. .RemoveCIA    jsr    thxReplayer+thxKillCIA    ;don't forget!
  43.  
  44. .thxInitFailed
  45.  
  46. .StopSong    jsr    thxReplayer+thxStopSong
  47.  
  48. .KillPlayer    jsr    thxReplayer+thxKillPlayer    ;don't forget!
  49.  
  50.     movem.l    (sp)+,d1-d7/a0-a6
  51.     moveq    #0,d0
  52.     RTS
  53.  
  54. thxCIAInterrupt    *move    #0,$dff180
  55.     jsr    thxReplayer+thxInterrupt
  56.     *move    #$aaa,$dff180
  57.     RTS
  58.  
  59.     Section    Pink\Abyss_rulez,Data
  60.  
  61. thxReplayer    IncBIN    THX-Replayer.BIN
  62. thxModule    IncBIN    THX.Hawkeye-Loader
  63. thxVisualBasic    IncDLL    vbrun300.dll
  64.  
  65.